package com.zc.ai.controller;

import com.zc.ai.pojo.ChatMessageSingleton;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("config")
public class ConfigController {


    @GetMapping("clearSession")
    public void clearSession() {
        ChatMessageSingleton.clearChatList();
    }
}
